package com.ccys.db.entity;

import com.ccys.db.rely.BaseEntity;
import io.swagger.annotations.ApiModelProperty;
import java.util.Date;
import javax.persistence.*;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
* Created by Mybatis Generator on 2023/12/18
*/
@Data
@Table(name = "tbl_member_long_term")
@NoArgsConstructor
@AllArgsConstructor
public class TblMemberLongTerm extends BaseEntity {
    @Column(name = "member_id")
    private String memberId;

    /**
     * Diagnosis的id
     */
    @Column(name = "condition_id")
    @ApiModelProperty("Diagnosis的id")
    private String conditionId;

    @Column(name = "condition_name")
    private String conditionName;

    /**
     * 0condition 1medication
     */
    @Column(name = "longterm_type")
    @ApiModelProperty("0condition 1medication")
    private Integer longtermType;

    /**
     * 存储的product的id
     */
    @Column(name = "medication_id")
    @ApiModelProperty("存储的product的id")
    private String medicationId;

    @Column(name = "medication_name")
    private String medicationName;

    @Column(name = "treated_since")
    private Date treatedSince;

    private String notes;
}